Retaining a maximised window for a module

Whilst running a DXL script that utilises dialog boxes, I find that the current module's window sometimes disappears behind other windows. As a result I have a function to bring it back to the front with the current object highlighted prior to displaying the next dialog box:

void highlightCurrentObject (Object currentObject) {
bringToFront currentModule
current = currentObject
scroll to currentObject
refresh currentModule
}

currentModule is a global variable.

When running the script on a maximised window, the module's window does not remain maximised. Removing "bringToFront currentModule" keeps it maximised, but the window then starts disappearing again!

How do I keep the module's window at the front and maximised?

Thanks,

Jonathan
Dangthrimble - Mon Mar 14 12:45:50 EDT 2011

Re: Retaining a maximised window for a module
Mathias Mamsch - Mon Mar 14 13:02:50 EDT 2011

See here. Hope that helps. Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Retaining a maximised window for a module
Dangthrimble - Mon Mar 14 18:50:59 EDT 2011

Yet again, swift help when you need it. Thanks.

Re: Retaining a maximised window for a module
strathglass - Wed Apr 10 14:29:20 EDT 2019

Mathias Mamsch - Mon Mar 14 13:02:50 EDT 2011
See here. Hope that helps. Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Your link is now broken. Frown

I also saw this too, but can't make it work with Mathias's shell.inc file from github (which normally works fine for me).

 

I started with a text file (with VBS extension) with just these two lines:

Set oShell = CreateObject("WScript.Shell")
oShell.SendKeys "% x"

I can double click that file and explorer window maximizes! Cool.

But I can't use that file as the argument to createShell() from shell.inc ... that doesn't work.

I've been playing around and still not yet figured out the syntax to use to do what the VBS file does from DXL using createShell()...any ideas?